package org.giles.config;

import com.woniuxy.springboot.javaconfig.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserJavaConfig {
    @Bean(name = "u1")
    public User getUserBean(){
        return new User("张三丰",120);
    }
    @Bean(name = "u2")
    public User getUserBean2(){
        return new User("张翠山",35);
    }
}
